package com.lemon.reggie.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class CategoryDTO implements Serializable {

    private static final long serialVersionUID = 8083908996295070047L;

    @ApiModelProperty(value = "分类id")
    private Long id;

    @ApiModelProperty(value = "类型   1 菜品分类 2 套餐分类")
    @NotNull(message = "分类类型不能为空！")
    private Integer type;

    @ApiModelProperty(value = "分类名称")
    @NotBlank(message = "分类名称不能为空！")
    private String name;

    @ApiModelProperty(value = "顺序")
    @NotNull(message = "分类顺序不能为空！")
    private Integer sort;
}
